package com.woniuxy.dao.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 通知公告
 * </p>
 *
 * @author Keep it simple
 * @since 2022-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class RepairNotice2 implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 标题
     */
    @TableField("noticeTitle")
    private String noticetitle;

    /**
     * 正文
     */
    @TableField("noticeContent")
    private String noticecontent;

    /**
     * 发布日期
     */
    @TableField(value = "releaseDate",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime releasedate;

    /**
     * 发布单位
     */
    @TableField("publishCompany")
    private String publishcompany;

    /**
     * 发布人
     */
    private String publisher;

    /**
     * 浏览次数
     */
    @TableField("browseTimes")
    private Integer browsetimes;

    /**
     * 删除
     */
    private Integer deleted;

    /**
     * 展示开始时间
     */
    @TableField("startDate")
    private LocalDate startdate;

    /**
     * 展示结束时间
     */
    @TableField("endDate")
    private LocalDate enddate;

    /**
     * 是否展示
     */
    @TableField("isDisplay")
    private Integer isdisplay;

    /**
     * 排序号
     */
    @TableField("seqNum")
    private Integer seqnum;

    /**
     * 权限编码
     */
    @TableField("permitCode")
    private String permitcode;

    /*
    /部分正文展示
     */
    @TableField("showcontent")
    private String showcontent;
}
